<template>
	<view>
		<!-- 头像 -->
		<uni-row class="top">
			<view class="left">
				<image src="../../static/uni.png" mode=""></image>
			</view>
			<view class="right">
				<text>用户名ID：2802199</text>
				<text>ddd</text>
			</view>
		</uni-row>
		<!-- 余额 -->
		<uni-row>

			<uni-grid :column="4" :square="false" :showBorder="false" :highlight="true">
				<uni-grid-item>
					<view class="grid-item-box" @click="wodezichan()" style="background-color: #fff;">
						<text class="text">0.00</text>
						<text class="text">余额</text>
					</view>
				</uni-grid-item>
				<uni-grid-item>
					<view class="grid-item-box" @click="wodezichan()" style="background-color: #fff;">
						<text class="text">0.00</text>
						<text class="text">冻结</text>
					</view>
				</uni-grid-item>
				<uni-grid-item>
					<view class="grid-item-box" @click="jifen()" style="background-color: #fff;">
						<text class="text">0</text>
						<text class="text">积分</text>
					</view>
				</uni-grid-item>
				<uni-grid-item>
					<view class="grid-item-box grid-item-box1" @click="chengzhang()" style="background-color: #fff;">
						<text class="text">0</text>
						<text class="text">成长值</text>
					</view>
				</uni-grid-item>
			</uni-grid>

		</uni-row>
		<!-- 我的订单 -->
		<uni-row>
			<uni-list>
				<uni-list-item showArrow title="我的订单" rightText="更多" to="../ddlb/ddlb"/>
			</uni-list>
		</uni-row>
		<uni-row>
			<uni-grid :column="5" :square="false" :highlight="true">
				<uni-grid-item>
					<view class="grid-item-box grid-item-box2" style="background-color: #fff;" @click="ddlb(1)">
						<uni-icons type="contact" class="icons" size="60"></uni-icons>
						<text class="text">待付款</text>
					</view>
				</uni-grid-item>
				<uni-grid-item>
					<view class="grid-item-box grid-item-box2" style="background-color: #fff;"  @click="ddlb(2)">
						<uni-icons type="contact" class="icons" size="60"></uni-icons>
						<text class="text">待发货</text>
					</view>
				</uni-grid-item>
				<uni-grid-item>
					<view class="grid-item-box grid-item-box2" style="background-color: #fff;"  @click="ddlb(3)">
						<uni-icons type="contact" class="icons" size="60"></uni-icons>
						<text class="text">待收货</text>
					</view>
				</uni-grid-item>
				<uni-grid-item>
					<view class="grid-item-box grid-item-box2" style="background-color: #fff;"  @click="ddlb(4)">
						<uni-icons type="contact" class="icons" size="60"></uni-icons>
						<text class="text">待评价</text>
					</view>
				</uni-grid-item>
				<uni-grid-item>
					<view class="grid-item-box grid-item-box2" style="background-color: #fff;" @click="sh">
						<uni-icons type="contact" class="icons" size="60"></uni-icons>
						<text class="text">售后</text>
					</view>
				</uni-grid-item>
			</uni-grid>

		</uni-row>
		<!-- 常用功能 -->
		<uni-row>
			<uni-list>
				<uni-list-item showArrow title="GPS订单" rightText="管理" to="../GPS/GPS" />
				<uni-list-item showArrow title="回收订单" rightText="管理" to="../hsdd/hsdd"/>
				<uni-list-item  title="常用功能" />
			</uni-list>

		</uni-row>
	    <!-- 优惠买单 -->
		<uni-row>
			<uni-grid :column="4" :square="false" :highlight="true">
				<uni-grid-item>
					<view class="grid-item-box grid-item-box2" @click="yhmd" style="background-color: #fff;">
						<uni-icons type="contact" class="icons" size="60"></uni-icons>
						<text class="text">优惠买单</text>
					</view>
				</uni-grid-item>
				<uni-grid-item>
					<view class="grid-item-box grid-item-box2" style="background-color: #fff;" @click="wodezichan">
						<uni-icons type="contact" class="icons" size="60"></uni-icons>
						<text class="text">资金明细</text>
					</view>
				</uni-grid-item>
				<uni-grid-item>
					<view class="grid-item-box grid-item-box2" style="background-color: #fff;" @click="sqfp">
						<uni-icons type="contact" class="icons" size="60"></uni-icons>
						<text class="text">申请发票</text>
					</view>
				</uni-grid-item>
				<uni-grid-item>
					<view class="grid-item-box  grid-item-box2" style="background-color: #fff;" @click="kpjl">
						<uni-icons type="contact" class="icons" size="60"></uni-icons>
						<text class="text">开票记录</text>
					</view>
				</uni-grid-item>
				<uni-grid-item>
					<view class="grid-item-box  grid-item-box2" style="background-color: #fff;"  >
						<navigator class="yhq" url="../youhuiquan/youhuiquan" open-type="switchTab" >
							<uni-icons type="contact" class="icons" size="60"></uni-icons>
							<text class="text">优惠券</text>
						</navigator>
					
					</view>
				</uni-grid-item>	
				<uni-grid-item>
					<view class="grid-item-box  grid-item-box2" style="background-color: #fff;" @click="qd">
						<uni-icons type="contact" class="icons" size="60"></uni-icons>
						<text class="text">签到赚积分</text>
					</view>
				</uni-grid-item>
			</uni-grid>
		
		</uni-row>
	    <!-- 三级分销 -->
		<uni-row>
			<uni-list>
				<uni-list-item  disabled="true"  title="三级分销"  />
				<uni-list-item showArrow title="成为分销商" to="../cwfxs/cwfxs" />
				<uni-list-item  disabled="true"   title="其他功能" />
				<uni-list-item showArrow title="积分券兑换积分" />
				<uni-list-item showArrow title="积分兑换成长值" />
				<uni-list-item showArrow title="帮助中心" />
				<uni-list-item showArrow title="个人信息" />
				<uni-list-item showArrow title="系统设置" />
			</uni-list>
		
		</uni-row>
	</view>
</template>

<script>
	export default {
		data() {
			return {
    
			}
		},
		methods: {
			// 我的资产
           wodezichan(){
			   uni.navigateTo({
			   	url:"../wodezichan/wodezichan"
			   })
		   },
		   // 积分
		   jifen(){
			   uni.navigateTo({
			   	url:"../jifen/jifen"
			   })
		   },
		   // 成长值
		   chengzhang(){
			   uni.navigateTo({
			   	url:"../chengzhang/chengzhang"
			   })
		   },
		   // 订单列表
		   ddlb(n){
			   console.log(n)
			   uni.clearStorage({
				   key:"index"
			   })
				 uni.setStorage({
				 	key:"index",
				 	data:n,
					success: function (res) {
							console.log(res);
						}
				 })
			   uni.navigateTo({
			   	url:"../ddlb/ddlb"
			
			   })
		   },
		   // 售后
		   sh(){
			   uni.navigateTo({
			   	url:"../sh/sh"
			   })
		   },
		   // 优惠买单
		   yhmd(){
			   uni.navigateTo({
			   	url:"../yhmd/yhmd"
			   })
		   },
		   // 申请发票
		   sqfp(){
			   uni.navigateTo({
			   	url:"../sqfp/sqfp"
			   })
		   },
		   // 开票记录
		   kpjl(){
			   uni.navigateTo({
			   	url:"../kpjl/kpjl"
			   })
		   },
		   // 优惠券
		   yhj(){
			   uni.navigateTo({
			   	url:"../youhuiquan/youhuiquan"
			
			   })
		   },
		   // 签到赚积分
		   qd(){
			   uni.navigateTo({
			   	url:"../qdzjf/qdzjf"
			   })
		   }
		
		   
		}
		,
		onShow(){
			
		}
	}
</script>

<style>
	@import './new_file.css';
</style>
